package com.steshov.el.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.steshov.el.service.UserService;

@Controller
@RequestMapping("mainPage.htm")
public class MainPageController extends AbstractController {

	@Autowired
	UserService service;

	
	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return new ModelAndView("mainPage");
	}



	public UserService getService() {
		return service;
	}

	public void setService(UserService service) {
		this.service = service;
	}

}
